package com.jy.api.misc.dto;

import java.util.Date;
import java.util.List;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.ToStringSerializer;
import com.fasterxml.jackson.annotation.JsonFormat;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author yuyue
 * @date 2021/12/7
 */
@Data
public class JiaoYanGZDto {

    @JSONField(serializeUsing = ToStringSerializer.class)
    private Long id;

    @ApiModelProperty("不为空时则表示是该医院特殊逻辑")
    private String hospitalId;

    @ApiModelProperty("业务类型")
    private String yeWuLX;

    @ApiModelProperty("字段名")
    private String ziDuanM;

    @ApiModelProperty("字段释义")
    private String ziDuanZWM;

    @ApiModelProperty("错误码")
    private Integer errorCode;

    @ApiModelProperty("是否必需")
    private Boolean required;

    @ApiModelProperty("校验规则")
    private String regular;

    @ApiModelProperty("校验类型，1: 不校验，2: 校验，3: 校验值域，4: 校验字典")
    private Integer type;

    @ApiModelProperty("标准值域代码")
    private String zhiYuDM;

    @ApiModelProperty("1: 完整性，2: 有效性，3: 一致性，4: 及时性")
    private Integer xingZhiType;

    @ApiModelProperty("1: 必须纠正，2: 警告，3: 精细标准")
    private Integer zhiBiaoJB;

    @ApiModelProperty("纳入规范性评价依据，1: 纳入，0：不纳入")
    private Integer naRu;

    @ApiModelProperty("指标说明")
    private String zhiBiaoSM;

    private List<String> biaoZhunZYList;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date chuangJianSJ;

    @ApiModelProperty("修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date xiuGaiSJ;

    private Integer zuoFeiBZ;
}
